﻿namespace Leetcode.N0344;

public class Solution
{
    public void ReverseString(char[] s)
    {
        int end;
        for (int i = 0; i < s.Length / 2; i++)
        {
            var c = s[i];
            end = s.Length - 1 - i;
            s[i] = s[end];
            s[end] = c;
        }
    }
}
